#include <stdio.h>
#include "crypto/bits.h"
#include "crypto/types.h"

int main()
{
    bits *buffer = initBits(5);
    setBit(buffer, 0, 1);
    setBit(buffer, 1, 0);
    setBit(buffer, 2, 0);
    setBit(buffer, 3, 1);
    setBit(buffer, 4, 0);

    printBits(buffer);
    rotateBits(buffer, 2);
    printBits(buffer);
    rotateBits(buffer, -2);
    printBits(buffer);
    rotateBits(buffer, 8);
    printBits(buffer);
    return 0;
}